package com.richard.design.principle.singleresponsibility.class_example;

/**
 * @author Richard·Wang
 * @Date 2021/4/4 20:11
 * @Version 1.0
 */
public class Bird {
    private final String  OSTRICH = "鸵鸟";
    public void mainMoveMode(String birdName){

        if (OSTRICH.equals(birdName)){
            System.out.println(birdName + "用脚走");
        }else {
            System.out.println(birdName + "用翅膀飞");
        }

    }
}
